package com.test.frameworkdemo

import android.support.v7.widget.RecyclerView
import com.test.frameworkdemo.databinding.ItemDemoBinding
import com.yoofn.framework.item.BaseItem

/**
 * Created by kalshen on 17-9-9.
 */

class DemoItem( recyclerView: RecyclerView) : BaseItem<ItemDemoBinding>(recyclerView) {

    var bean: DemoBean? = null

    override val type: Int
        get() = R.layout.item_demo

    override fun initView() {
        with(contentView) {
            tvName.text = bean?.name
        }
    }

    class DemoBean : BaseBean() {
        var name: String? = null
    }
}
